<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.icss.cooperative.model.basic.SynOfficial"%>

<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/pages/inc/header.jsp" %>

<title>纸质收文登记单</title>
	
</head>
<body>
<script type="text/javascript">
<%@ include file="/pages/jsp/commom/officeCommon.js" %>
<%@ include file="/pages/jsp/commom/openOffice.js" %>
<%@ include file="/pages/jsp/docReceive/paperIssueNew.js" %> 
	</script>
<div style="width:100%;;margin: auto;padding: 0em 0;">
	<form id="docIssueForm">
		<input type="hidden" id="formId" name="formId" value="<c:out value='${formId}'/>">		
		<input id="docId" name="docId" type="hidden"  value="<c:out value='${docIssue.docId}'/>"/>
		<input id="saveFlag" name="saveFlag" type="hidden"  value="<c:out value='${saveFlag}'/>"/>
		<input id="OfficialId" name="OfficialId" type="hidden"  value="<c:out value='${OfficialId}'/>"/>
		
		<input type="hidden" id="docReceiveType" name="docReceiveType" value="<c:out value='${docIssue.docReceiveType}'/>">
		<input type="hidden" id="displayNumberReceive" name="displayNumberReceive" value="<c:out value='${docIssue.displayNumberReceive}'/>">
		<input type="hidden" id="numberLogId" name="numberLogId" value="">	
		<input type="hidden" id="numberId" name="numberId" value="">			
		<input type="hidden" id="displayNumberYear" name="displayNumberYear" value="<c:out value='${numYear}'/>">
		<input type="hidden" id="docState" name="docState" value="" />
		
		<table class="inputTable">
			<caption style="text-align: center;"><c:out value='纸质收文登记单' /></caption>
			<tr>
				<%-- <td class="staticTdNW" style="width: 11%">收文种类</td>
				<td class="dynamicTdNW" style="width: 22%">
					<select id="synFormCategoryId" name="synFormCategoryId" style="width: 70%;">
						
						<c:forEach items="${synFormCategory}" var="item">
							<option value="${item.formId}" <c:if test='${item.formId eq docIssue.formId}'>selected="selected"</c:if> >${item.formName}</option>
						</c:forEach>
					</select>
					
				</td> --%>
				<c:choose>
		       <c:when test="${processId eq 'DOC_ReceiveFlow'}">
		              <td class="staticTdNW" style="width: 16%">编号</td>
				<td class="dynamicTdNW" colspan="3">
				<input type="hidden" id="formType" name="formType" value="1">
					<input id="numYear"  class="easyui-textbox"  disabled="disabled" type="text" value="<c:out value='${numYear}'/>"/>-<input id="num" name="num"  class="easyui-textbox" type="text" value="">
				</td>
				<td class="staticTdNW" style="width: 16%">收文类型</td>
				<td class="dynamicTdNW" style="width: 21%">
					<select id="docReceiveCode" name="docReceiveCode" class="easyui-combobox" data-options="editable:false" style="width: 70%;">
						<option value="办理类">办理类</option>
						<option value="阅知类">阅知类</option>
					</select>
				</td>	
		       </c:when>
		       <c:when test="${processId eq 'DOC_DispatchDeptReadFlow'}">
		              <td class="staticTdNW" style="width: 11%">编号</td>
				<td class="dynamicTdNW" colspan="5">
				<input type="hidden" id="docReceiveCode" name="docReceiveCode" value="部门收文">
				<input type="hidden" id="formType" name="formType" value="2" />
					<input id="numOrg"  disabled="disabled" class="easyui-textbox" type="text" value="<c:out value='${docIssue.draftOrg}'/>"/>-<input id="numYear"  disabled="disabled" class="easyui-textbox" type="text" value="<c:out value='${numYear}'/>">
					-<input id="numMonth"  disabled="disabled" class="easyui-textbox" type="text" value="<c:out value='${numMonth}'/>">-<input id="num" name="num"  class="easyui-textbox" type="text" value="">
				</td>
		       </c:when>
		        <c:when test="${processId eq 'DOC_TechnologyReceiveFlow'}">
		              <td class="staticTdNW" style="width: 11%">编号</td>
				<td class="dynamicTdNW" colspan="5">
				<input type="hidden" id="docReceiveCode" name="docReceiveCode" value="技术收文">
				<input type="hidden" id="formType" name="formType" value="3" />
				<select id="numLine" name="numLine" class="easyui-combobox" value="SQ" data-options="editable:false" style="width: 100px;">
						<option value="SQ">SQ</option>
						<option value="T1">T1</option>
						<option value="T2">T2</option>
						<option value="T3">T3</option>
						<option value="T4">T4</option>
						<option value="T5">T5</option>
						<option value="T6">T6</option>
						<option value="ZH">ZH</option>
						<option value="JN">JN</option>
						<option value="AN">AN</option>
						<option value="CH">CH</option>
					</select>-<select id="numLineName" name="numLineName" value="LXD" class="easyui-combobox"  data-options="editable:false" style="width: 100px;">
						<option value="LXD">LXD</option>
						<option value="SW">SW</option>
						<option value="JL">JL</option>
						<option value="CL">CL</option>
					</select>-
					<input id="numYear"  class="easyui-textbox"  disabled="disabled" type="text" value="<c:out value='${numYear}'/>"/>-<input id="num"  name="num" class="easyui-textbox" type="text" value="" >
				</td>
		       </c:when>
		       <c:otherwise>
		       <td class="staticTdNW" style="width: 11%">编号</td>
				<td class="dynamicTdNW" colspan="3">
<%-- 					<input id="displayNumberReceive" name="displayNumberReceive" class="easyui-textbox" type="text" value="<c:out value='${formName}'/>"/>-<input class="easyui-textbox" type="text" value=""> --%>
				</td>
		       </c:otherwise>
				</c:choose>
				
			</tr>
			<tr>
				<!-- 
				<td class="staticTdNW" style="width: 11%">分办人</td>
				<td class="dynamicTdNW" style="width: 22%">
					<input id="pressCorrector" name="pressCorrector" class="easyui-textbox" type="text"  value="<c:out value='${docIssue.pressCorrector}'/>"/>
				</td>
				-->

				<td class="staticTdNW" style="width: 16%">来文编号</td>
				<td class="dynamicTdNW" style="width: 21%" >
					<input id="displayNumber" name="displayNumber" class="easyui-textbox" type="text" value="<c:out value='${docIssue.displayNumber}'/>"/>
				</td>
					<td class="staticTdNW" style="width: 16%">登记日期</td>
				<td class="dynamicTdNW" style="width: 21%">
					<input id="numberTime" name="numberTime"  style="width: 70%;" editable="false" value="<fmt:formatDate value="${docIssue.numberTime}" pattern="yyyy-MM-dd" />">
				</td>
				<td class="staticTdNW" style="width: 16%">登记人</td>
				<td class="dynamicTdNW" style="width: 21%">
					<input readonly="readonly" id="drafter" name="drafter" class="easyui-textbox" type="text"  value="<c:out value='${docIssue.drafter}'/>"/>
					<input readonly="readonly" id="drafterCode" name="drafterCode" type="hidden"  value="<c:out value='${docIssue.drafterCode}'/>"/>
				</td>
			
			</tr>
			<tr>
				
			    
				<td class="staticTdNW">份<span class="spaceSpanHalf"></span>数</td>
				<td class="dynamicTdNW" >
					<input id="printNum" name="printNum"  type="text" value="<c:out value='${docIssue.printNum}'/>"/>
				</td>	
				<td class="staticTdNW" style="width: 11%">紧急程度</td>
				<td class="dynamicTdNW" style="width: 22%">
					<select id="emergencyCode" name="emergencyCode" class="easyui-combobox" value="<c:out value='${docIssue.emergencyCode}'/>" data-options="editable:false" style="width: 70%;">
						<option value="普通">普通</option>
						<option value="急">急</option>
						<option value="加急">加急</option>
						<option value="特急">特急</option>
					</select>
				</td>
				
				<td class="staticTdNW" style="width: 11%">密<span class="spaceSpan"></span>级</td>
				<td class="dynamicTdNW" style="width: 22%" >
					<select id="secretCode" name="secretCode" class="easyui-combobox" data-options="editable:false" style="width: 70%;">
						<option value="">请选择</option>
						<option value="内部">内部</option>
						<option value="秘密">秘密</option>
						<option value="机密">机密</option>
						<option value="绝密">绝密</option>
					</select>
				</td>
			</tr>
			<tr>
				
				<td class="staticTdNW" style="width: 11%">是否归档</td>
				<td class="dynamicTdNW" style="width: 22%">
					<select id="isArchive" name="isArchive" class="easyui-combobox" data-options="editable:false" style="width: 70%;">
						<!-- <option value="">请选择</option> -->
						<option value="1" <c:if test="${docIssue.isArchive=='1' }">selected="selected"</c:if>>归档</option>
						<option value="0" <c:if test="${docIssue.isArchive=='0' }">selected="selected"</c:if>>不归档</option>
						
						
					</select>
				</td>
<%-- 				<td class="staticTdNW">归档分类</td>
				<td class="dynamicTdNW">
					<select id="archiveCategoryId" name="archiveCategoryId" style="width: 70%;">
						<option value="" >请选择</option>
						<c:forEach items="${docArchiveCategory }" var="item">
							<option value="${item.categoryId}" <c:if test='${item.categoryId eq docIssue.archiveCategoryId}'>selected="selected"</c:if> >${item.categoryName}</option>
						</c:forEach>
					</select>
					<input id="archiveCategoryName" name="archiveCategoryName" value="<c:out value='${docIssue.archiveCategoryName }' />" type="hidden">
				</td>
				<td class="staticTdNW">归档期限</td>
				<td class="dynamicTdNW">
					<select id="archiveSaveDeadline" name="archiveSaveDeadline" data-options="editable:false" class="easyui-combobox" style="width: 70%;">
						<option value="" >请选择</option>
						<option value="永久" <c:if test='${"永久" eq docIssue.archiveSaveDeadline}'>selected="selected"</c:if> >永久</option>
						<option value="30年" <c:if test='${"30年" eq docIssue.archiveSaveDeadline}'>selected="selected"</c:if> >30年</option>
						<option value="10年" <c:if test='${"10年" eq docIssue.archiveSaveDeadline}'>selected="selected"</c:if> >10年</option>
					</select>
				</td> --%>
				<td id="hide_" class="staticTdNW" style="width: 11%">办结时限</td>
				<td id="hide_expeireTime" class="dynamicTdNW" style="width: 22%" >
					<input id='expeireTime' name="expeireTime" class="easyui-datebox" editable="false" style="width: 70%;" value="<fmt:formatDate value="${docIssue.expeireTime}" pattern="yyyy-MM-dd" />">
				</td>
				<td colspan="4"></td>
				
			</tr>
			<%-- <tr>
				<td class="staticTdNW">办结时限</td>
				<td class="dynamicTdNW" >
					<input id='expeireTime' name="expeireTime" class="easyui-datebox" editable="false" style="width: 70%;" value="<fmt:formatDate value="${docIssue.expeireTime}" pattern="yyyy-MM-dd" />">
				</td>
				<td colspan="4"></td>
			</tr>	 --%>
			<tr>
				<td class="staticTdNW">来文单位</td>
				<td class="dynamicTdNW" colspan="5">
					<input id="dispatchOrg" name="dispatchOrg" class="easyui-textbox" type="text" style="width: 80%;" value="<c:out value='${docIssue.dispatchOrg}' />" />
				</td>
			</tr>			
			<tr>
				<td class="staticTdNW"><!-- <font color="red">*</font> -->来文标题</td>
				<td class="dynamicTdNW" colspan="5">
					<input id="docName" name="docName"  type="text" style="width: 80%;" value="<c:out value='${docIssue.docName}' />" />
					
				</td>
			</tr>
			<%-- <tr>
				<td class="staticTdNW">是否显示摘要</td>
				<td class="dynamicTdNW" colspan="5">
					<input id="isReceiveRemarkYes" name="isReceiveRemark" <c:if test="${docIssue.isReceiveRemark=='1' }">checked="checked"</c:if> type="radio" value="1"><label for="isReceiveRemarkYes">是</label>
					<input id="isReceiveRemarkNo" name="isReceiveRemark" <c:if test="${docIssue.isReceiveRemark!='1' }">checked="checked"</c:if>  type="radio" value="0"><label for="isReceiveRemarkNo">否</label>
				</td>
			</tr> --%>
			<tr id="receiveRemarkTR">
				<td class="staticTdNW">内容说明</td>
				<td class="dynamicTdNW" colspan="5">
					<input id="receiveRemark" name="receiveRemark" class="easyui-textbox" data-options="multiline:true" type="text" style="width: 80%;height:100px" value="<c:out value='${docIssue.receiveRemark}' />" />
				</td>
			</tr>
		<%-- 	<tr id="receiveRemarkTR">
				<td class="staticTdNW">政策解读</td>
				<td class="dynamicTdNW" colspan="5">
					<input id="policyDescription" name="policyDescription" maxlength="85" class="easyui-textbox" data-options="multiline:true" style="width: 85%;height: 100px;" value="<c:out value='${docIssue.policyDescription}' />" />
				</td>
			</tr> --%>
			<tr>
				<td class="staticTdNW"><!-- <font color="red">*</font> -->正&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;文</td>
				<td class="dynamicTdNW" colspan="5">
					   <!-- <div class="inlineBlock">  
		            	<a  href="#" class="easyui-linkbutton" plain="true" onclick="openEditOffice();">编辑正文</a> 
		        	 </div>  -->
					  <div id="fileDiv1"></div> 
				</td>
			</tr>			
			<tr>
				<td class="staticTdNW">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件</td>
				<td class="dynamicTdNW" colspan="5">
					<div id="fileDiv"></div>
				</td>
			</tr>
			
			<tr>
				<td class="footTd" colspan="6" style="text-align:center;">
					
					<c:if test="${direct eq '1'}">
					<button onclick="_saveOAdata('ND')" class="bgtxtButton" style="font-size: 12px;" type="button">保存</button>
					</c:if>
					<c:if test="${direct eq '0'}">
					<button onclick="_saveOAdata('TS')" class="bgtxtButton" style="font-size: 12px;" type="button">保存</button>
					<button onclick="_saveOAdata('ND')" class="bgtxtButton" style="font-size: 12px;" type="button">保存提交</button>
					</c:if>
				</td>
			</tr>			
		</table>
	</form>
	<%-- <%@ include file="/pages/jsp/docIssue/correlationIssue.jsp" %> --%>
<script type="text/javascript">
<%-- inintCorrelationIssuePage(); --%>
		<%@ include file="/pages/jsp/commom/validator.js" %>
		
	</script>
</div>
</body>
</html>